<?php

class Control_Model_Form_Settings extends Zend_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('category');

        $day_quote = new Zend_Form_Element_Text('day_quote');
        $day_quote->setLabel('Day quote:')
                    ->setRequired(true)
                    ->addFilter('StripTags')
                    ->addFilter('StringTrim')
                    ->addValidator('NotEmpty')
                    ->setAttrib('size', 90);

        $advertise_link = new Zend_Form_Element_Text('advertise_link');
        $advertise_link->setLabel('Advertise link:')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty')
                ->setAttrib('size', 90);

        $advertise_img = new Zend_Form_Element_Text('advertise_img');
        $advertise_img->setLabel('Advertise image:')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('size', 90);

        $copyright = new Zend_Form_Element_Textarea('copyright');
        $copyright->setLabel('Copyright:')
            ->setRequired(true)
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');


        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');


        $this->addElements(array($day_quote, $advertise_link, $advertise_img, $copyright, $submit));
    }
}